programming4us
           
 
 
Windows Server

Windows Server 2008 : Use the Command-Line Server Manager (ServerManagerCmd.exe)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
10/29/2010 7:00:51 PM
There is quite a bit you can do with the new ServerManagerCmd.exe command, including the following:
  • Automatically install or remove roles, role services, and features.

  • View logs and run queries regarding roles, role services, and features.

  • Run with an XML file to expedite automated installations that are repetitive through the use of an XML answer file.

Note

To learn more about creating an answer file to work with ServerManagerCmd.exe, see http://technet.microsoft.com/en-us/library/cc766357.aspx.


To get started, you need to be a member of the Administrators group on the server and be running a command prompt with elevated privileges. From the command prompt, you can type ServerManagerCmd.exe -help to get started. Note that the response provides syntax and parameter information. For greater detail on the use of ServerManagerCmd.exe, see http://technet.microsoft.com/en-us/library/cc748918.aspx. Let’s look at several examples that make it a bit easier to see how this tool may come in handy.

For starters, enter ServerManagerCmd.exe -query to see the various roles and features you have installed as well as roles and features you could install (see Figure 1).

Figure 1. ServerManagerCmd.exe -query.


Note

If you want to push the result of the query out to an XML file, you can type ServerManagerCmd.exe -query c:\filename.xml.


For each role, a role identifier must be used. For example, to install the Print Server role, you use Print-Services as the role identifier. You can install roles by typing the following (making sure to use the correct syntax, as shown in the results from -query):

ServerManagerCmd -install <role identifier>

Note

If you want the system to reboot after the role is installed, you type -restart at the end of the command.


To remove a role, you type the following:

ServerManagerCmd -remove <role identifier>

Remember that features can be installed just as easily as roles, through the use of the ServerManagerCmd command. For example, to quickly install PowerShell from the command prompt, you type the following:

ServerManagerCmd -i PowerShell

Sometimes adding or removing a role will cause other items—role services and/or features—to be added or removed. You might want to see what will be done by the installation and/or removal of a certain role, and this is where the WhatIf command can be helpful. You can type the following:

ServerManagerCmd -install <Role/Feature Name> -whatif

You now see the possible results before you execute the command. (You can include -logpath c:\filename.txt at the end of this command to port the response to a .txt file.)

Note

For an overview of Server Manager commands, see http://technet.microsoft.com/en-us/library/cc748918.aspx.

Other -----------------
- Windows Server 2008 : Perform Role and Feature Management
- Windows Server 2008 : Use Initial Configuration Tasks
- Windows Server 2008 : Install and Configure the File Services Role
- Configure IPv6 in Windows Server 2008
- Windows Server 2008 : Install and Configure the DHCP Server Role
- Windows Server 2008 : Install and Configure the DNS Server Role
- Windows Server 2008 : Configuring Storage
- Windows Server 2008 : The Windows Deployment Service
- Windows Server 2008 : Publishing Applications with TS RemoteApp
- Windows Server 2008 : Deploying Terminal Services Gateway
- Windows Server 2008 : Managing Terminal Services User Connections
- Windows Server 2008 : Configuring Terminal Services Clients
- Windows Server 2008 Server Core : Configuring the Command Window
- Windows Server 2008 Server Core : The Command Line Made Easy
- Windows Server 2008 Server Core : Accessing DLLs Using the RunDLL32 Utility
- Windows Server 2008 Server Core : Configuring the Server for Initial Use
- Windows Server 2008 : Configuring Terminal Services (part 3)
- Windows Server 2008 : Configuring Terminal Services (part 2)
- Windows Server 2008 : Configuring Terminal Services (part 1)
- Windows Server 2008 : Deploying a Terminal Server (part 2) - Specifying NLA Settings
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us